/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.order.dao.serviceorder;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.order.entity.serviceorder.ServiceOrderDetail;

import java.util.List;
import java.util.Map;

/**
 * 服务订单DAO接口
 * @author Kilo
 * @version 2021-03-05
 */
@MyBatisDao
public interface ServiceOrderDetailDao extends CrudDao<ServiceOrderDetail> {
    List<ServiceOrderDetail> getFrameNumberByCondition(String investorId, String companyId);
    ServiceOrderDetail getOrderDetailByFrameNumber(String frameNumber);
    Long updateInvestorCarContract(String investorCarContractId, String frameNumber);
    ServiceOrderDetail getOrderDetailByFrame(String frameNumber);
    void updateDetail(ServiceOrderDetail serviceOrderDetail);
    List<Map<String,Object>> getCarJSReport(Map<String,Object> map);
    List<ServiceOrderDetail> findByServiceOrderId(String serviceOrderId);
    List<ServiceOrderDetail> findAll();

    List<String> getFrameNumberByRemove(List<String> deleteFameNumbers);
}
